package model

type AgentName struct {
	Id        int64  `form:"id" json:"id"`
	AgentName string `form:"agent_name" json:"agent_name"`
}

// 添加客户信息
type AgentAddReq struct {
	AgentName        string `form:"agent_name" json:"agent_name"`
	Email            string `form:"email" json:"email"`
	ConnectPeople    string `form:"connect_people" json:"connect_people"`
	ConnectPhone     string `form:"connect_phone" json:"connect_phone"`
	Counterpart      string `form:"counterpart" json:"counterpart"`
	CounterpartPhone string `form:"counterpart_phone" json:"counterpart_phone"`
	School           string `form:"school" json:"school"`
	ServiceStartTime int64  `form:"service_start_time" json:"service_start_time"`
	ServiceEndTime   int64  `form:"service_end_time" json:"service_end_time"`
	IsFlag           bool   `form:"is_flag" json:"is_flag"`
	IsSync           bool   `form:"is_sync" json:"is_sync"`
	Concurrent       int    `json:"concurrent"`
}

// 查询客户信息
type AgentGetReq struct {
	PageSize
	AgentName        string `form:"agent_name" json:"agent_name"`
	Email            string `form:"email" json:"email"`
	ConnectPeople    string `form:"connect_people" json:"connect_people"`
	ConnectPhone     string `form:"connect_phone" json:"connect_phone"`
	Counterpart      string `form:"counterpart" json:"counterpart"`
	CounterpartPhone string `form:"counterpart_phone" json:"counterpart_phone"`
	School           string `form:"school" json:"school"`
	SurplusStart     int64  `form:"surplus_start" json:"surplus_start"`
	SurplusEnd       int64  `form:"surplus_end" json:"surplus_end"`
}

// 更新客户信息
type AgentUpdateReq struct {
	Id                int64  `form:"id" json:"id"`
	Email             string `form:"email" json:"email"`
	ConnectPeople     string `form:"connect_people" json:"connect_people"`
	ConnectPhone      string `form:"connect_phone" json:"connect_phone"`
	Counterpart       string `form:"counterpart" json:"counterpart"`
	CounterpartPhone  string `form:"counterpart_phone" json:"counterpart_phone"`
	ServiceStartTime  int64  `form:"service_start_time" json:"service_start_time"`
	ServiceEndTime    int64  `form:"service_end_time" json:"service_end_time"`
	IsSync            bool   `form:"is_sync" json:"is_sync"`
	Concurrent        *int   `json:"concurrent"`
	AppletsConcurrent *int   `json:"applets_concurrent" form:"applets_concurrent"` // 开通的数量
	AppletsUseDays    *int   `form:"applets_use_days" json:"applets_use_days"`     // 开通的使用天数
}

type AgentIdReq struct {
	Id int64 `form:"id" json:"id"`
}

type AgentListResp struct {
	Id               int64  `header:"数据id" is_header:"false" write:"false" json:"id"`
	AgentName        string `header:"客户名称" is_header:"true" write:"true" json:"agent_name"`
	ConnectPeople    string `header:"联系人" is_header:"true" write:"true" json:"connect_people"`
	ConnectPhone     string `header:"手机号" is_header:"true" write:"true" json:"connect_phone"`
	Email            string `header:"联系人邮箱" is_header:"true" write:"true" json:"email"`
	School           string `header:"学校名称" is_header:"true" write:"true" json:"school"`
	Counterpart      string `header:"对接人" is_header:"true" write:"true" json:"counterpart"`
	CounterpartPhone string `header:"对接人手机号" is_header:"true" write:"true" json:"counterpart_phone"`
	ServiceStartTime string `header:"服务开始时间" is_header:"true" write:"true" json:"service_start_time"`
	ServiceEndTime   string `header:"服务结束时间" is_header:"true" write:"true" json:"service_end_time"`
	SurplusTime      int64  `header:"剩余时间" is_header:"true" write:"true" json:"surplus_time"`
}

// 详情
type AgentDetailResp struct {
	Id               int64  `json:"id"`
	AgentName        string `json:"agent_name"`
	ConnectPeople    string `json:"connect_people"`
	ConnectPhone     string `json:"connect_phone"`
	Email            string `json:"email"`
	School           string `json:"school"`
	Counterpart      string `json:"counterpart"`
	CounterpartPhone string `json:"counterpart_phone"`
	ServiceStartTime string `json:"service_start_time"`
	ServiceEndTime   string `json:"service_end_time"`
	SurplusTime      int64  `json:"surplus_time"`
	IsSync           bool   `json:"is_sync"`
	Concurrent       int    `json:"concurrent"`

	AppletsConcurrent int `json:"applets_concurrent"` // 开通的数量
	AppletsUseDays    int `json:"applets_use_days"`   // 开通的使用天数
}
